added samples
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2010 / CSRunProcessAsUser / Program.cs
blob957277136e101cbb717e93a6dad36687f0101ea3
1 /********************************** Module Header **********************************\
2 * Module Name: Program.cs
3 * Project: CSRunProcessAsUser
4 * Copyright (c) Microsoft Corporation.
6 * The Program.cs file is automatically generated as the entry point of the program.
8 * This source is subject to the Microsoft Public License.
9 * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
10 * All other rights reserved.
12 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
13 * EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14 * MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
15 \***********************************************************************************/
17 using System;
18 using System.Windows.Forms;
20 namespace CSRunProcessAsUser
22 static class Program
24 /// <summary>
25 /// The main entry point for the application.
26 /// </summary>
27 [STAThread]
28 static void Main()
30 Application.EnableVisualStyles();
31 Application.SetCompatibleTextRenderingDefault(false);
32 Application.Run(new MainForm());